import Detail from "@/components/Detail.vue";
import Game from "@/components/Game.vue";
import Hello from "@/components/Hello.vue";
import Love from "@/components/Love.vue";
import { createRouter,createWebHistory } from "vue-router";
const router=createRouter({
    history: createWebHistory(),
    routes:[
        {
            path: '/Hello',
            component: Hello,
        },
        {
            path: '/Game',
            component: Game,
            children:[{
                path: '/Game/Detail',
                component: Detail,
                props(route){
                    return route.query;
                }
            }]
        },
        {
            path: '/Love',
            component: Love,
        },
        {
            path: '/',
            redirect: '/Hello',
        }
    ]
})
export default router;